shiboken2/clang: Fix and simplify resolveType() helper
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 3 Oct 2025 15:43:00 +0000 (17:43 +0200)
commitb51d47412d9e61cb756f59660610def9ec258c86
treec90c68d28938fb4e28877df6c9965cbeaafea44d
parenta3b50bc3dbb0f9728c2c3e5195e4911eb471ff85
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch
sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp